@mixin pad {
  box-sizing: border-box;
}

@mixin mar {
  margin: 0 (40rem / 75);
}

@mixin back {
  background-color: #f2f2f2;
}



header {
  width: 100%;
  height: (100rem / 75);
  overflow: hidden;
  >a {
    display: inline-block;
    background-image: url(../image/logo.png);
    background-repeat: no-repeat;
    width: (182rem / 75);
    height: (68rem / 75);
    background-size: ((182rem / 75) (68rem / 75));
    margin-top: (18rem / 75);
    margin-left: (44rem / 75);
  }

  span {
    float: right;
    width: (38rem / 75);
    height: (32rem / 75);
    background-image: url(../image/menu.png);
    background-repeat: no-repeat;
    background-size: ((38rem / 75) (32rem / 75));
    margin-top: (40rem / 75);
    margin-right: (40rem / 75);
    &:hover .menu{
      display: block;
    } 
  }
  .menu{
    display: none;
    position: absolute;
    top: (100rem / 75);
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    text-align: center;
    line-height: (160rem /75);
    background: rgba(255,255,255,0.9);
    ul{
      width: 100%;
      li{
        width: 100%;
        height: (150rem / 75);
        background-image: url(../image/border-bottom.png);
        background-repeat: no-repeat;
        background-position: center bottom;
        background-size: (750rem / 75)(2rem / 75);
        &:last-child{
            background-image: none;
        }
        a{
          display: block;
          width: 100%;
          height: 100%;
          color: #000;
        }
      }
    }
  }
}

.banner {
  position: relative;
  width: 100%;
  overflow-x: scroll;

  ul {
    width: 400%;
    overflow: hidden;

    li {
      float: left;
      width: 25%;

      a {
        display: block;

        img {
          width: 100%;
        }
      }
    }

    .banner-i {
      width: 100%;
      position: absolute;
      bottom: (25rem / 75);

      ul {
        width: (240rem / 75);
        height: (20rem / 75);
        margin: 0 auto;

        li {
          width: (20rem / 75);
          height: (20rem / 75);
          border-radius: 50%;
          background-color: #b3bba6;
          margin-right: (30rem / 75);

          &:last-child {
            margin-right: 0;
          }

          &:hover {
            width: (50rem / 75);
            border-radius: (10rem / 75);
          }
        }

      }
    }
  }
}

.new-game {
  width: 100%;
  margin-top: (80rem / 75);
      padding-bottom: (40rem / 75);

  .new-title {
    overflow: hidden;
    padding: 0 (40rem / 75);

    span {
      float: left;
      padding: (6rem / 75) 0;
      font-size: (30rem /75);
      padding-left: (20rem / 75);
      border-left: (6rem / 75) solid #ff7a59;
      color: #000;
    }

    b {
      float: right;
      font-weight: normal;
      padding-right: (16rem / 75);
      background-image: url(../image/arrow-r1.png);
      background-position: right;
      background-repeat: no-repeat;
      background-size: (10rem / 75);
      color: #666;
      padding-top: (6rem / 75);
    }
  }
}

.new-centent {
  width: 100%;
  overflow-x: scroll;
  padding: 0 (40rem / 75);
  margin-top: (20rem / 75);
  @include pad();
  ul {
    width: (530rem / 75)*3;
    overflow: hidden;

    li {
      float: left;
      width: (510rem / 75);
      margin-right: (20rem / 75);

      >a {
        display: block;
        width: 100%;

        img {
          width: 100%;
          border-radius: (20rem / 75);
        }
      }

      h4 {
        margin-top: (15rem / 75);
        line-height: (42rem / 75);
        font-size: (26rem / 75);
      }

      p {
        overflow: hidden;
        line-height: (46rem / 75);

        span {
          float: left;
          float: left;
          color: #009900;
          margin-right: (20rem / 75);
        }

        span {
          float: left;

          &:nth-child(2) {
            color: #666;

            b {
              color: #ef8500;
            }
          }
        }

        a {
          float: left;
          width: (130rem / 75);
          height: (46rem / 75);
          text-align: center;
          line-height: (46rem / 75);
          background-image: url(../image/bj-1.png);
          background-size: (130rem / 75) (46rem / 75);
          color: #fff;
        }
      }

    }
  }
}

.banner-2 {
  position: relative;
  width: 100%;
  padding: (50rem / 75) 0;
  @include pad();
  @include back();
  overflow-x: scroll;

  ul {
    width: 400%;
    overflow: hidden;

    li {
      float: left;
      width: 25%;
      a {
        display: block;
        padding: 0 (40rem / 75);

        img {
          width: 100%;
          border-radius: (20rem / 75);
        }
      }
    }

    div {
      position: absolute;
      left: 0;
      right: 0;
      bottom: (10rem / 75);
      margin: auto;
      width: (250rem / 75);
      height: (20rem / 75);

      span {
        display: inline-block;
        width: (20rem / 75);
        height: (20rem / 75);
        border-radius: (10rem / 75);
        background-color: #bababa;
        margin-right: (30rem / 75);

        &:last-child {
          margin-right: 0;
        }

        &:hover {
          width: (60rem / 75);
          @include back();
        }
      }
    }
  }
}

.fk {
  @include back();
  padding-bottom: (20rem / 75);

  p {
    padding: (50rem / 75) 0;
    color: #fe6838;
    font-size: (32rem / 75);
    @include mar();
    text-align: center;
    line-height: (50rem / 75);
  }

  .fk-list {
    a {
      display: block;
      @include mar();
      height: (80rem / 75);
      line-height: (80rem / 75);
      background-image: url(../image/dotted.png);
      background-repeat: no-repeat;
      background-size: (670rem / 75) (3rem / 75);
      color: #666;
    }

    .more {
      @include mar();
      height: (70rem / 75);
      text-align: center;
      line-height: (70rem / 75);
      background-color: #e9e9e9;
      margin-top: (20rem / 75);
    }
  }
}

.APP {
  @include back();
  padding-top: (20rem / 75);
  padding-bottom: (50rem / 75);

  a {
    display: block;
    @include mar();

    img {
      width: 100%;
      border-radius: (20rem / 75);
    }
  }
}

.game-list {
  width: 100%;
  @include back();

  nav {
    overflow: hidden;
    @include mar();

    a {
      @include pad();
      float: left;
      height: (70rem /75);
      display: block;
      width: 50%;
      border: 1px solid #ccc;
      font-size: (34rem / 75);
      text-align: center;
      line-height: (70rem /75);
      color: #000;

      &:hover {
        color: #fff;
        background-color: #373737;
        text-decoration: none;
      }
    }
  }

  ul {
    @include mar();

    li {
      position: relative;
      width: 100%;
      height: (800rem / 75);
      background-image: url(../unplad/game-list-1.png);
      background-repeat: no-repeat;
      background-size: (670rem / 75) (800rem / 75);
      margin-top: (20rem / 75);

      a {
        display: block;
        width: 100%;
        height: 100%;
      }

      .game-icon {
        position: absolute;
        bottom: (50rem / 75);

        .game-icon-left {
          float: left;
          width: (166rem / 75);
          height: (166rem / 75);
          margin-left: (70rem / 75);

          img {
            width: 100%;
          }
        }

        .game-icon-right {
          float: left;
          margin-left: (38rem / 75);

          h2 {
            font-size: (28rem / 75);
            line-height: 1.5;
            color: #fff;
          }

          h3 {
            color: #ccc;
            line-height: 1.5;
          }

          p {
            span {
              display: inline-block;

              &:first-child {
                width: calc(126rem / 75);
                height: calc(20rem / 75);
                background-image: url(../unplad/star5.png);
                background-size: calc(126rem / 75) calc(20rem / 75);
                background-repeat: no-repeat;

              }

              &:nth-child(2) {
                line-height: 1.5;
                color: #ccc;
              }
            }
          }

          >span {
            display: inline-block;
            width: (286rem / 75);
            height: (50rem / 75);
            background-image: url(../image/btn-bg-md.png);
            background-repeat: no-repeat;
            background-size: (286rem / 75) (50rem / 75);
            font-size: (28rem / 75);
            color: #fff;
            text-align: center;
            line-height: (50rem / 75);
            margin-top: (12rem / 75);
          }
        }
      }

      &:nth-child(2) {
        background-image: url(../unplad/game-list-2.png);
        background-repeat: no-repeat;

      }

      &:nth-child(3) {
        background-image: url(../unplad/game-list-3.png);
        background-repeat: no-repeat;
      }
    }
  }
}

.game-list-row {
  width: 100%;
  @include back();

  ul {
    @include mar();
    padding-top: (20rem / 75);

    li {
      position: relative;
      width: 100%;
      padding: (40rem / 75) 0;
      background-image: url(../image/dotted.png);
      background-repeat: no-repeat;
      background-size: (670rem / 75) (3rem / 75);
      background-position: center bottom;

      &:after {
        display: inline-block;
        content: "";
        position: absolute;
        top: (80rem / 75);
        right: (40rem / 75);
        width: (16rem / 75);
        height: (28rem / 75);
        background-image: url(../unplad/arrow-r2.png);
        background-size: (16rem / 75)(28rem / 75);
        background-repeat: no-repeat;
      }

      a {
        display: block;
        overflow: hidden;

        img {
          float: left;
          width: (124rem / 75);
        }

        .row-right {
          float: left;
          margin-left: (40rem / 75);

          h2 {
            color: #000;
            font-weight: 700;
            line-height: 1.8;
          }

          h3 {
            color: #666;
            line-height: 1.8;
          }

          p {
            margin-top: (16rem / 75);

            span {
              display: inline-block;
              width: calc(126rem / 75);
              height: calc(20rem / 75);

              &:first-child {
                background-image: url(../unplad/star5.png);
                background-size: calc(126rem / 75) calc(20rem / 75);
              }

              &:nth-child(2) {
                color: #666;
              }
            }

          }
        }
      }
    }
  }

  .more {
    @include mar();
    height: (70rem / 75);
    text-align: center;
    line-height: (70rem / 75);
    background-color: #e9e9e9;
    margin-top: (20rem / 75);
  }
}

.APP {
  padding-bottom: 0;

  .top {
    a {
      display: block;
      width: 100%;
      height: (170rem / 75);
      line-height: (170rem / 75);
      text-align: center;
      color: #333;
      margin-left: 0;
    }
  }
}

footer {
  height: (180rem / 75);
  background-color: #13100b;
  text-align: center;
  overflow: hidden;

  h3 {
    color: #999;
    font-size: (30rem / 75);
    margin-top: (32rem / 75);
  }

  p {
    line-height: 1.8 ;
    color: #656668;
    margin-top: (10rem / 75);
  }
}